package org.jash.common.log

import android.util.Log
import com.tencent.bugly.crashreport.BuglyLog
import com.tencent.bugly.crashreport.CrashReport

val log_debug = false
val enable_net_log = true

val Any.TAG: String
    get() = javaClass.simpleName

fun Any.logDebug(msg:Any?) {
    if (log_debug) {
        Log.d(TAG, msg.toString())
    }
    if (enable_net_log) {
        BuglyLog.d(TAG, msg.toString())
    }
}